Repository navigation
pkgs/atlas-search: split dependency compilation out of the package build with crane (code#8392) - #8560
Merged
Conversation
…ild with crane (code#8392)
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
pkgs/atlas-searchnow compiles its registry dependencies as their own derivation (cranebuildDepsOnly→cargoArtifacts) whenever acraneLibis supplied. The package flake passes one, pinned to the crane rev the root lock already carries (01bc1d40). Callers that do not passcraneLib(home/common/default.nix) keep the existing monolithicbuildRustPackagebuild — same sources, same checks, no split — via acraneLib ? nullfallback indefault.nix.Two source tiers, deliberately:
crates/,schema/— atlas-coreinclude_str!s the stage DDL): keys the dependency layer. Crane's dummy-source normalization means a.rscontent change does not change this derivation.fixtures/): the test suite reads fixtures by relative path (crates/atlas-core/src/eval.rsopens../../fixtures/eval-smoke.json), so the check phase needs them in the tree — but a fixture edit must not rebuild the dependency layer, so they stay out of the deps tier.Behaviour preserved: test suite runs in the check phase (
doCheck = true), smokeinstallCheckPhaseunchanged,ATLAS_SEARCH_ORT_LIB_DEFAULTwiring unchanged.Measured (laptop, through
~/tools/fleet-build-lock, 2026-11-11)w2840sl7…-atlas-search-deps-0.1.0untouched), 34s, greenCI checks were queued (runner fleet saturated); the package flake build above is the verification, run on the exact tree in this PR (green on retry — see the flake note).
Known flake, pre-existing (not this change)
crates/atlas-search/tests/cli_parity.rsraces under load in BOTH build systems: a spawned CLI reads its qvec JSON file empty (ATLAS_SEARCH_QVEC_FILE: bad JSON vector … EOF while parsing). Across tonight's runs it failed 3 times (monolith once, crane twice, different tests each time) and passed on retry each time. Recorded on code#8392 for a follow-up fix; it is not caused by the split.Refs code#8392.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.